package com.qf.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class demo1 {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("springData.xml");
        Object db = applicationContext.getBean("db");
        System.out.println(db);
    }
}
